require("Common/define");
require("Common/functions");
require("View/LoginPanel");
require("View/HallPanel");
require("View/LevelPanel");


------------------------------------------
GameRoot={};
local this=GameRoot;
local transform;

function GameRoot.OnAwake()
    print("hello luaFramework");

    LoginPanel.New();
    -- local res=LuaFramework.LuaHelper.GetResManger()
  --  resMgr:LoadPrefab("playerprefab",{"player"},this.LoadOK);
  --resMgr:LoadPrefab("playerprefab",{"playerprefab"},this.LoadOK);
end
-- function GameRoot.LoadOK(objs)
--     local prefab=objs[0];

--     local go= newObject(prefab);
--     transform=go.transform;

--     UpdateBeat:Add(this.Update);
-- end
-- function GameRoot.Update()
--     if(transform)then
--     local dx = Input.GetAxis("Horizontal");
--     local dy = Input.GetAxis("Vertical");
--     local dir = Vector3.forward * dy + Vector3.right * dx;
--     transform:Translate(dir*Time.deltaTime*10);
--     end
-- end